package com.zhijiaoyun.dao;

import com.zhijiaoyun.dao.core.IBaseDao;
import com.zhijiaoyun.model.Comment;

import java.util.List;

/**
 * @author shisfish
 * @date 2017/12/26
 */
public interface ICommentDao extends IBaseDao<Comment> {

    /**
     * count
     *
     * @param courseId
     * @return
     */
    int count(long courseId);

    /**
     * page
     *
     * @param beginIndex
     * @param pageSize
     * @param courseId
     * @return
     */
    List<Comment> page(int beginIndex, int pageSize, long courseId);

}
